package com.rd.server.modules.room.service;

import com.mybatisflex.core.service.IService;
import com.rd.modules.room.model.ao.RoomAO;
import com.rd.server.modules.room.model.RoomTransferPO;
import com.rd.server.modules.room.model.RoomUsersPO;
import com.rd.server.modules.user.model.po.UserPO;

import java.util.List;

/**
 * @ClassName RoomUsersService
 * @Description TODO
 * @Author zyy
 * @Date 2025/6/6 22:30
 * @Version 1.0
 **/
public interface RoomUsersService extends IService<RoomUsersPO> {


    /**
     * 加入房间
     * @param roomId
     * @param userPO
     */
    void joinRoom(String roomId, UserPO userPO);

    /**
     * 根据用户id房间ID
     * @param userId 用户ID
     * @param roomId 房间ID
     * @return RoomTransferPO
     */
    RoomUsersPO selectByUserIdAndRoomId(String userId, String roomId);


    /**
     * 查询房间用户列表
     * @param roomId 房间ID
     * @return 用户列表
     */
    List<RoomUsersPO> selectByRoomId(String roomId);

}
